export default [
  {
    path: '/user',
    layout: false,
    routes: [
      { name: '登录', path: '/user/login', component: './user/Login' },
      { component: './404' }
    ]
  },
  { path: '/dashboard', name: '欢迎', icon: 'smile', component: './dashboard' },
  { path: '/', redirect: '/dashboard' },
  {
    path: '/setting',
    name: '系统设置',
    icon: 'setting',
    routes: [
      {
        path: '/setting/userManager',
        name: '用户管理',
        component: './setting/User'
      },
      {
        path: '/setting/roleManager',
        name: '角色管理',
        component: './setting/Role'
      },
      {
        path: '/setting/menuManager',
        name: '菜单管理',
        component: './setting/Menu'
      },
      {
        path: '/setting/clientManager',
        name: '客户端管理',
        component: './setting/Client'
      },
      { component: './404' }
    ]
  },
  { path: '/member', name: '会员管理', icon: 'menuUnfold', component: './Member' },
  { component: './404' }
];
